package com.usian.apis.wemedia;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmMaterialDto;
import org.springframework.web.multipart.MultipartFile;

/**
 * ClassName: WmmediaMaterialControllerApi
 * Author:   WGG
 * Date:    2022-11-2022/11/16-11:38
 * Version: 1.0
 * Description:
 */
public interface WmMaterialControllerApi {

    /**
     * 图片上传
     * @param file
     * @return
     */
    public ResponseResult uploadPicture(MultipartFile file);


    /**
     * 图片的分页查询
     * @param dto
     * @return
     */
    public ResponseResult list(WmMaterialDto dto);

    /**
     * 图片删除
     * @param id
     * @return
     */
    public ResponseResult delPicture( Integer id);


    /**
     * 取消收藏
     * @param id
     * @return
     */
    ResponseResult cancelCollect(Integer id);

    /**
     * 收藏
     * @param id
     * @return
     */
    ResponseResult collect(Integer id);
}
